
<%@ page import="cn.gudian.cms.News.ArcType" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="arcType.edit" default="Edit ArcType" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="arcType.list" default="ArcType List" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="arcType.new" default="New ArcType" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="arcType.edit" default="Edit ArcType" /></h1>
            <g:if test="${flash.message}">
            <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
            </g:if>
            <g:hasErrors bean="${arcTypeInstance}">
            <div class="errors">
                <g:renderErrors bean="${arcTypeInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${arcTypeInstance?.id}" />
                <g:hiddenField name="version" value="${arcTypeInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>

          <input type="hidden" name="parent.id" id="parent.id" value="${arcTypeInstance?.parent?.id}"/>
          <input type="hidden" name="mode" id="mode" value="${arcTypeInstance?.mode}"/>


        <tr class="prop">
          <td valign="top" class="name">
            <label for="name"><g:message code="arcType.name" default="Name"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: arcTypeInstance, field: 'name', 'errors')}">
            <g:textField name="name" value="${fieldValue(bean: arcTypeInstance, field: 'name')}" onblur="pinyinfun();"/>

          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="path"><g:message code="arcType.path" default="Path"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: arcTypeInstance, field: 'path', 'errors')}">
            <g:textField name="path" value="${fieldValue(bean: arcTypeInstance, field: 'path')}"/>

          </td>
        </tr>
           <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="orderNum"><g:message code="arcType.orderNum" default="Order Num" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: arcTypeInstance, field: 'orderNum', 'errors')}">
                                    <g:textField name="orderNum" value="${fieldValue(bean: arcTypeInstance, field: 'orderNum')}" />

                                </td>
                            </tr>
        <tr class="prop">
          <td valign="top" class="name">
            <label for="keywords"><g:message code="arcType.keywords" default="Keywords"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: arcTypeInstance, field: 'keywords', 'errors')}">
            <g:hiddenField name="tempindex" value="${arcTypeInstance.tempindex==null?'/Templet/index.html':arcTypeInstance.tempindex}"/>
            <g:hiddenField name="templist" value="${arcTypeInstance.templist==null?'/Templet/listPage_templet.html':arcTypeInstance.templist}"/>
            <g:hiddenField name="temparticle" value="${arcTypeInstance.temparticle==null?'/Templet/contentPage_templet.html':arcTypeInstance.temparticle}"/>
            <g:hiddenField name="description" value="${fieldValue(bean: arcTypeInstance, field: 'description')}"></g:hiddenField>
             <g:hiddenField name="ishidden" value="false"/>
            <g:textArea name="keywords"  value="${fieldValue(bean: arcTypeInstance, field: 'keywords')}" style="width:95%;height:60px;"/>
          </td>
        </tr>
                    </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'update', 'default': 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'delete', 'default': 'Delete')}" onclick="return confirm('${message(code: 'delete.confirm', 'default': 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
